package com.sxz.mall.mallauthserver.feign;

import com.sxz.mall.common.utils.R;
import com.sxz.mall.mallauthserver.vo.LoginVO;
import com.sxz.mall.mallauthserver.vo.SocialUser;
import com.sxz.mall.mallauthserver.vo.UserRegisterVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("mall-member") // 请求哪个服务
public interface MemberFeignService {

    @PostMapping("member/member/register")
    R register(UserRegisterVO vo);

    @PostMapping("member/member/login")
    R login(LoginVO vo);

    @PostMapping("member/member/oauth2/login")
    R socialLogin(@RequestBody SocialUser vo);
}
